<%@ page language="java" contentType="text/html; charset=UTF-8" pageEncoding="UTF-8"%>
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd">
<html>
<head>
<meta http-equiv="Content-Type" content="text/html; charset=UTF-8">
<title>景旭商城-我的分享</title>
<%@ include file="/page/pc/include.jsp"%>
</head>
<body>
	<div class="wrap">
		<jsp:include page="_my_header.jsp" />
		<div class="site_wrap18">
			<div class="site_wrap18_con">
				<div class="main">
					<jsp:include page="_my_left.jsp" />
					<div class="rightitem">

						<div class="dd_part">
							<div class="hd">
								<h3>产品分享记录</h3>
							</div>
							<div class="bd">
								<div class="dd_part1">
									<div class="hd1">
										<div class="left">
										</div>
										<div class="right">
											<div class="search_part12">
												<form id="my_share_search_form" action="${rootPath}/pc/my/myShared" method="post" >
													<input type="hidden" id="likeSort" name="likeSort" value="${likeSort }"/>
													<input type="hidden" id="commentSort" name="commentSort" value="${commentSort }"/>
													<input type="hidden" id="favoriteSort" name="favoriteSort" value="${favoriteSort }"/>
													<input type="hidden" id="viewSort" name="viewSort" value="${viewSort }"/>
													<input type="hidden" id="registerSort" name="registerSort" value="${registerSort }"/>
													<input type="hidden" id="currentPage" name="currentPage" value="${currentPage }"/>
													<input type="hidden" id="isSort" name="isSort" value="false"/>
													<input id="search_key" name="searchKey" type="text" class="inputstyle1" value="${param.searchKey }" placeholder="商品名称/编号">
													<input id="btn_search" type="button" class="inputbtn1" value=" " onclick="$('#my_share_search_form').submit();">
												</form>
											</div>
										</div>
									</div>
									<div class="bd1">
										<c:choose>
											<c:when test="${fn:length(pageBean.recordList) > 0 }">
												<div class="mytable3">
													<table>
														<thead>
															<tr>
																<td style="text-align:left;width:280px">商品名称</td>
																<td style="width:90px">
																	点赞次数
																	<a name="sortBtn" tag="likeSort" href="javascript:void(0);" sort="${likeSort }">
																		<c:choose>
																			<c:when test="${likeSort eq 'ASC' }">
																				<img src="<%=basePath%>/statics/images/ASC.png" />
																			</c:when>
																			<c:when test="${likeSort eq 'DESC' }">
																				<img src="<%=basePath%>/statics/images/DESC.png" />
																			</c:when>
																			<c:otherwise>
																				<img src="<%=basePath%>/statics/images/icon_px3.png" />
																			</c:otherwise>
																		</c:choose>
																	</a>
																</td>
																<td style="width:90px">
																	评论次数
																	<a name="sortBtn" tag="commentSort" href="javascript:void(0);" sort="${commentSort }">
																		<c:choose>
																			<c:when test="${commentSort eq 'ASC' }">
																				<img src="<%=basePath%>/statics/images/ASC.png" />
																			</c:when>
																			<c:when test="${commentSort eq 'DESC' }">
																				<img src="<%=basePath%>/statics/images/DESC.png" />
																			</c:when>
																			<c:otherwise>
																				<img src="<%=basePath%>/statics/images/icon_px3.png" />
																			</c:otherwise>
																		</c:choose>
																	</a>
																</td>
																<td style="width:90px">
																	收藏次数
																	<a name="sortBtn" tag="favoriteSort" href="javascript:void(0);" sort="${favoriteSort }">
																		<c:choose>
																			<c:when test="${favoriteSort eq 'ASC' }">
																				<img src="<%=basePath%>/statics/images/ASC.png" />
																			</c:when>
																			<c:when test="${favoriteSort eq 'DESC' }">
																				<img src="<%=basePath%>/statics/images/DESC.png" />
																			</c:when>
																			<c:otherwise>
																				<img src="<%=basePath%>/statics/images/icon_px3.png" />
																			</c:otherwise>
																		</c:choose>
																	</a>
																</td>
																<td style="width:90px">
																	浏览次数
																	<a name="sortBtn" tag="viewSort" href="javascript:void(0);" sort="${viewSort }">
																		<c:choose>
																			<c:when test="${viewSort eq 'ASC' }">
																				<img src="<%=basePath%>/statics/images/ASC.png" />
																			</c:when>
																			<c:when test="${viewSort eq 'DESC' }">	
																				<img src="<%=basePath%>/statics/images/DESC.png" />
																			</c:when>
																			<c:otherwise>
																				<img src="<%=basePath%>/statics/images/icon_px3.png" />
																			</c:otherwise>
																		</c:choose>
																	</a>
																</td>
																<td style="width:90px">
																	注册用户
																	<a name="sortBtn" tag="registerSort" href="javascript:void(0);" sort="${registerSort }">
																		<c:choose>
																			<c:when test="${registerSort eq 'ASC' }">
																				<img src="<%=basePath%>/statics/images/ASC.png" />
																			</c:when>
																			<c:when test="${registerSort eq 'DESC' }">
																				<img src="<%=basePath%>/statics/images/DESC.png" />
																			</c:when>
																			<c:otherwise>
																				<img src="<%=basePath%>/statics/images/icon_px3.png" />
																			</c:otherwise>
																		</c:choose>
																	</a>
																</td>
																<td>
																	购买量
																	<img src="<%=basePath%>/statics/images/icon_ask.png" title="销售总数/销售总金额" />
																</td>
															</tr>
														</thead>
														<tbody>
															<tr>
																<td colspan="7" style="padding:0">
																	<table class="mytable4">
																		<tbody>
																			<c:forEach items="${pageBean.recordList }" var="shareInfo" varStatus="status">
																				<tr>
																					<td style="width:280px">
																						<div class="m_piclist">
																							<div class="mypic8">
																								<div class="pic">
																									<img src="${imgRootURL }${shareInfo.sharedProductImagePath }${ossImgZoomPC }">
																								</div>
																								<div class="item-info">
																									<h2 style="line-height:18px;height:36px;">
																										${shareInfo.shareTitle }
																									</h2>
																									<h3 style="color:#999;margin-top:5px;line-height:18px">
																										商品编码：${shareInfo.productCode }<br/>${shareInfo.productCategoryName }
																									</h3>
																								</div>
																							</div>
																						</div>
																					</td>
																					<td style="width:90px">${shareInfo.likeQuantity }</td>
																					<td style="width:90px">${shareInfo.commentQuantity }</td>
																					<td style="width:90px">${shareInfo.favoriteQuantity }</td>
																					<td style="width:90px">${shareInfo.viewQuantity }</td>
																					<td style="width:90px">${shareInfo.registerQuantity }</td>
																					<td>
																						${empty shareInfo.shareOrderNum ? 0 : shareInfo.shareOrderNum }
																						/￥${empty shareInfo.shareTotalMoney ? 0 : shareInfo.shareTotalMoney }
																					</td>
																				</tr>
																			</c:forEach>
																		</tbody>
																	</table>
																</td>
															</tr>
														</tbody>
													</table>
													<jx:paging formID="my_share_search_form" isShowJumpToButton="true" numPerPage="10" isShowpageCount="true"></jx:paging>
												</div>
											</c:when>
											<c:otherwise>
												<div class="noresult" style="text-align: center;height:245px;">
													<p>
														<i><img style="height:100px;width:100px;" src="<%=basePath%>/statics_wx/images/icon_noorder.png" /></i>
														<br><br><br>
														<span>您还没有分享信息~</span>
													</p>
												</div>
											</c:otherwise>
										</c:choose>
									</div>
								</div>
							</div>
						</div>
					</div>
				</div>
			</div>
		</div>
	</div>

	<div>
		<!---网站底部开始-->
		<jsp:include page="../footer.jsp?showQaFlag=0" />
		<!---网站底部结束-->
	</div>
	<style type="text/css">
		.m_piclist{margin-bottom:-10px}
		.m_piclist .mypic8{border-bottom:1px solid #cccccc;padding-bottom:10px;margin-bottom:10px}
		.m_piclist .mypic8:last-child{padding-bottom:0;border-bottom:none;margin-bottom:none}
		.mytable2 table tr td{padding:10px 20px;border:none;border-bottom:1px solid #ccc;font-size:12px}
	</style>
	<script type="text/javascript" src="<%=basePath%>/js/pc/my_share_list.js"></script>
</body>
</html>